exports.forumArticleCollect = function (req, res) {

    var restfulParams = req.routeInfo.restfulParams;

    //最终结果
    var resultData = {};

    var skip = restfulParams.skip == undefined ? 0 : restfulParams.skip;
    var limit = restfulParams.limit == undefined ? config.publicConfig.LIMIT : restfulParams.limit;

//forumQuestionAnswerUserCollect
    //任务流创建
    async.waterfall([

            function (cb) {
                if (restfulParams.uc_type == 2) {
                    R.SEND_HTTP(
                        req,
                        {
                            url: CORE_APIConfig.coreAPI.forumContentUserCollect + "/uc_type/" + restfulParams.uc_type + "/uc_uid/" + restfulParams.u_id + "/skip/" + skip + "/limit/" + limit,
                            method: 'POST',
                            data: {
                                fields: ["fc_utype", "fc_fcfid", "fc_id", "uc_create_time", "fc_title", "fc_type", "fc_answer_count", "fc_images", "u_nickname", "u_header_url"].join(",")
                            }
                        },
                        function (err, data) {
                            //判断是否有错误信息
                            if (err) {
                                return cb(err, data);
                            }

                            resultData = data.data;

                            cb();
                        }
                    );
                } else if(restfulParams.uc_type == 4){
                    R.SEND_HTTP(
                        req,
                        {
                            url: CORE_APIConfig.coreAPI.forumQuestionAnswerUserCollect + "/uc_type/" + restfulParams.uc_type + "/uc_uid/" + restfulParams.u_id + "/skip/" + skip + "/limit/" + limit,
                            method: 'GET'
                        },
                        function (err, data) {
                            //判断是否有错误信息
                            if (err) {
                                return cb(err, data);
                            }

                            resultData = data.data;

                            cb();
                        }
                    );
                }else{
                    cb();
                }


            }

        ], function (err, result) {

            //返回最终拼接结果
            RES.response(res, true, resultData);

        }
    );

}